import VueRouter from 'vue-router';
import HelloWorld from '../components/HelloWorld.vue'
import Home from '../components/Home.vue'
const routes = [
  { path: '/', component: Home },
  { path: '/hello', component: HelloWorld },
  // 更多路由...
];
const router = new VueRouter({
  mode: 'history',
  routes, // 等价于 routes: routes
});

export default router;